home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 7 / BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso / Files / Tele / H / H⁄UX 1.1.cpt / H_UX 1.1 ƒ / Names with spaces in them < prev    next >
Encoding:
Text File  |  1992-10-13  |  2.2 KB  |  42 lines

  1.  
  2.      If you are unfamiliar with a system like UNIX using file or
  3. directory names with spaces in them works something like this:
  4.  
  5.      H/UX is evaluating the command line as three 'commands'. Each
  6. 'command' is seperated by a space.  The first 'command' is the action
  7. to take, the second is the subject of that action and the third (only
  8. used in copy, move and rename) is the is the new name/location of the
  9. subject.  Anyway if one of those 'commands' has a space in it, this
  10. obviously messes up this system.  On UNIX and DOS systems the answer
  11. is to avoid names with spaces in them, but that is hardly acceptable
  12. for most mac users.  The answer in this case then is to use quotation
  13. marks to make it clear what is a 'command'.  Anything in quotes is
  14. considered to be one 'command'.  This is done like so.  To move the file
  15. *BBS list* you would type *move "BBS list" Hermes*.  That would move the
  16. file *BBS list* from the current directory into a folder called *Hermes*
  17. also in the current directory.
  18.      When using quotes, everything in the command goes in quotes, not
  19. just the part with the space. If you wanted to move *BBS list* down
  20. several levels of folder you would put the whole thing in quotes if any
  21. part of it had a space in it, like so 
  22. *move "BBS list" "Hermes:Hermes Files:Externals"*.  That would move
  23. *BBS list* down several layers of directories.
  24.      Anyway I hope this is a little clearer.  If you have a problem
  25. please let me know and I will try and explain how H/UX expects things.
  26. I myself don't really know all that much about UNIX so I sort of
  27. hacked this all out how I thought it was supposed to look.
  28.  
  29. BTW while I'm on this subject, there are a couple more hints that may
  30. make things easier.  First is that case doesn't matter.  This wasn't my
  31. decision, the mac OS ignores it.  *BBS list* is the same thing as 
  32. *bbs list*.  It may be easier if you can get used to it to ignore case.
  33. Second when using quotes you don't have to include the very last quote 
  34. if you don't want.  If it is only a two 'command' line you can leave
  35. off the last quote on the second 'command'.  If it is a three word
  36. 'command' you have to have both on the second word but not on the
  37. third one.
  38.  
  39. Thanks,
  40.  
  41. Chris
  42.